$(function() {
	var setcontent = document.getElementById("set_content");
	var content = document.getElementById("right_2");
	var h = document.documentElement.clientHeight;
	var h1 = document.body.scrollHeight;
	var chat = document.getElementById("chat");
	var right_C_2 = document.getElementById("right_C_2");
	var right_B_2 = document.getElementById("right_B_2");
	chat.style.height = 663 + "px";
	right_C_2.style.height = (663 - 50) + "px"
	right_B_2.style.height = (663 - 50) + "px";
	var myTX=   $("#touxiang")[0].src;
	var liaotianTX=$(".grayqian>img")[0].src;
	$(".right_5_set").click(function() {
		var nr = $("#set_content").val();
		$.post("http://www.tuling123.com/openapi/api", {
			"key": "238f1af6a5d747a6b9a1808d0fedf69a",
			"info": nr
		}, function(d) {
			$("#content")[0].innerHTML += "<li class='content_left'>" + "<img class='tulin_img' src='"+liaotianTX+"'/>" +"<div class='xiaojianjiao_left'></div>"+ "<span class='tulin_txt'>" + d.text + "</span>" + "</li>";
			content.scrollTop = content.scrollHeight;
		}); //接图灵机器人
		$("#face_div").slideUp(500)
		$("#xialatu").slideUp(1000);
		$("#left_1_bigImg").attr("style", "display: none;");
		$("#sousuo").attr("style", "display: none;");
		$("#tjqunliao").hide(1000)
		if($("#set_content").val() == "") {
			alert("不能发空消息！")
		} else {
			if($("#set_content")[0].value == "[微笑]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/1.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[撇嘴]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/2.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[色]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/3.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[发呆]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/4.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[流泪]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/5.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[害羞]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/6.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[闭嘴]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/7.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[睡]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/8.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[大哭]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/9.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[尴尬]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/10.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[发怒]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/11.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[调皮]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/12.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[呲牙]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/13.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[惊讶]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/14.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[难过]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/15.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[冷汗]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/16.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[抓狂]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/17.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[吐]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/18.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[偷笑]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/19.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[可爱]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/20.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[白眼]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/21.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[傲慢]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/22.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[饥饿]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/23.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[困]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/24.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[惊恐]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/25.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[流汗]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/26.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[憨笑]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/27.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[大兵]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/28.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[奋斗]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/29.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[咒骂]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/30.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[疑问]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/31.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[嘘...]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/32.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[晕]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/33.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[折磨]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/34.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[衰]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/35.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[敲打]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/36.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[再见]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/37.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[擦汗]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/38.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[抠鼻]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/39.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[嗅大了]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/40.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[坏笑]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/41.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[左哼哼]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/42.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[右哼哼]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/43.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[哈欠]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/44.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[鄙视]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/45.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[委屈]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/46.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[快哭了]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/47.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[阴险]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/48.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[亲亲]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/49.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[吓]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/50.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[可怜]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/51.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[拥抱]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/52.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[月亮]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/53.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[太阳]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/54.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[炸弹]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/55.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[骷髅]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/56.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[菜刀]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/57.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[猪头]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/58.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[西瓜]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/59.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[咖啡]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/60.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[米饭]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/61.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[爱心]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/62.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[强]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" + "<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/63.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[弱]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" +"<span id='txt'>" + "<img src='faceImg/64.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[握手]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/65.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[胜利]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/66.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[抱拳]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/67.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[勾引]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/68.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[我爱你]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/69.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[差劲]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/70.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[玫瑰]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/71.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[凋谢]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/72.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[示爱]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/73.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[献吻]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/74.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else if($("#set_content")[0].value == "[飞吻]") {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>"+"<div class='xiaojianjiao_right'></div>" + "<span id='txt'>" + "<img src='faceImg/75.gif'/>" + "</span>" + "</li>";
				setcontent.value = ""
			} else {
				$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li class='content_right'>" + "<img id='content_img' src='"+myTX+"'/>" +"<div class='xiaojianjiao_right'></div>"+ "<span id='txt'>" + $("textarea").val().replace(/</g, "&gt;").replace(/>/, "&lt;") + "</span>" + "</li>";
				setcontent.value = ""
			}
			content.scrollTop = content.scrollHeight;
		}

	})

	$("#touxiang").click(function() {
		$("#left_1_bigImg").toggle(500);
		$("#face_div").slideUp(500);
		$("#xialatu").slideUp(1000);
		$("#sousuo").attr("style", "display: none;");
		$("#tjqunliao").hide(1000)

	})

	/*表情点击按钮*/
	$("#face").click(function() {
		$("#face_div").slideToggle(500)
		$("#xialatu").slideUp(1000);
		$("#left_1_bigImg").attr("style", "display: none;");
		$("#sousuo").attr("style", "display: none;");
	})
	$("#right_1>span>span,#right_1>span>img").click(function() {
			$("#xialatu").slideToggle(1000);
			$("#face_div").slideUp(500)
			$("#left_1_bigImg").attr("style", "display: none;");
			$("#sousuo").attr("style", "display: none;");
		})
		/*表情光标开始*/
	$("#face_tab td").mouseover(function() {
			$(this).attr("style", "border: 1px solid #0000FF;");
			$(this).mouseout(function() {
				$(this).attr("style", "border: 0px;");
			})
		}) /*表情光标结束*/
		/*tab切换  开始*/
	$("#left_3>img:eq(0)").click(function() {
		$(this).attr("src", "img/left_3_green1.png");
		$("#left_3>img:eq(1)").attr("src", "img/left_3_white2.png");
		$("#left_3>img:eq(2)").attr("src", "img/left_3_white3.png");
		$("#tab").attr("style", "display: block;")
		$("#left_4_div").attr("style", "display: none;");
		$("#left_4_ul").attr("style", "display: none;");
		$("#right").attr("style", "display: block;");
		$("#right_B").attr("style", "display: none;");
		$("#right_C").attr("style", "display: none;");
		$("#tjqunliao").hide(1000)
	});
	$("#left_3>img:eq(1)").click(function() {
		$(this).attr("src", "img/left_3_green2.png");
		$("#left_3>img:eq(0)").attr("src", "img/left_3_white1.png");
		$("#left_3>img:eq(2)").attr("src", "img/left_3_white3.png");
		$("#tab").attr("style", "display: none;");
		$("#left_4_div").attr("style", "display: none;");
		$("#left_4_ul").attr("style", "display: block;");
		$("#right").attr("style", "display: none;");
		$("#right_B").attr("style", "display: block;");
		$("#right_C").attr("style", "display: none;");
		$("#tjqunliao").hide(1000)
	});
	$("#left_3>img:eq(2)").click(function() {
		$(this).attr("src", "img/left_3_green3.png");
		$("#left_3>img:eq(0)").attr("src", "img/left_3_white1.png");
		$("#left_3>img:eq(1)").attr("src", "img/left_3_white2.png");
		$("#tab").attr("style", "display: none;");
		$("#left_4_ul").attr("style", "display: none;");
		$("#left_4_div").attr("style", "display: block;");
		$("#right").attr("style", "display: none;");
		$("#right_B").attr("style", "display: none;");
		$("#right_C").attr("style", "display: block;");
		$("#tjqunliao").hide(1000)
	}); /*tab切换  结束*/

	/*公众号开始*/
	var left_3_btn2_right_1_span = document.getElementById("right_B_1_span");
	left_3_btn2_right_1_span.innerHTML = $("#left_4_ul>li:first").text()
	$("#left_4 li:odd").attr("style", "margin-bottom: 10px;cursor: pointer;").click(function() {
			$("#left_4 li:odd").attr("style", "margin-bottom: 10px;background-color: #2F3239;cursor: pointer;");
			$(this).attr("style", "margin-bottom: 10px;background-color: #3A3F45;cursor: pointer;");
			left_3_btn2_right_1_span.innerHTML = $(this).prev().text();
			if($(this).prev().text() == "天津全接触") {
				$("#right_B_2")[0].innerHTML = null;
				$("#right_B_2").append('<img src="img-right2/00.png"/>');
				$("#right_B_2").append('<img src="img-right2/0.gif"/>');
				$("#right_B_2").append('<img src="img-right2/1.gif"/>');
				$("#right_B_2").append('<img src="img-right2/03.png"/>');
				$("#right_B_2").append('<img src="img-right2/4.png"/>');
				$("#right_B_2").append('<img src="img-right2/5.png"/>');
				$("#right_B_2").append('<img src="img-right2/6.png"/>');
				$("#right_B_2").append('<img src="img-right2/7.png"/>');
				$("#right_B_2").append('<img src="img-right2/8.png"/>');
				$("#right_B_2").append('<img src="img-right2/9.png"/>');
				$("#right_B_2").append('<img src="img-right2/10.png"/>');
				$("#right_B_2").append('<img src="img-right2/12.png"/>');
			}
			if($(this).prev().text() == "天津出发") {
				$("#right_B_2")[0].innerHTML = null;
				$("#right_B_2").append('<img src="img-right2/02-0.png"/>');
				$("#right_B_2").append('<img src="img-right2/0.gif"/>');
				$("#right_B_2").append('<img src="img-right2/02-03.gif"/>');
				$("#right_B_2").append('<img src="img-right2/02-04.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-05.gif"/>');
				$("#right_B_2").append('<img src="img-right2/02-02.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-06.gif"/>');
				$("#right_B_2").append('<img src="img-right2/02-07.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-08.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-09.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-10.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-11.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-12.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-13.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-14.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-15.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-16.gif"/>');
				$("#right_B_2").append('<img src="img-right2/02-17.png"/>');
				$("#right_B_2").append('<img src="img-right2/02-18.gif"/>');
			}
			if($(this).prev().text() == "天津雅颂居") {
				$("#right_B_2")[0].innerHTML = null;
				$("#right_B_2").append('<img src="img-right2/03-01.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-02.gif"/>');
				$("#right_B_2").append('<img src="img-right2/03-03.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-04.gif"/>');
				$("#right_B_2").append('<img src="img-right2/03-05.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-06.gif"/>');
				$("#right_B_2").append('<img src="img-right2/03-07.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-08.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-09.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-10.png"/>');
				$("#right_B_2").append('<img src="img-right2/03-11.gif"/>');
			}
			if($(this).prev().text() == "前端早读课") {
				$("#right_B_2")[0].innerHTML = null;
				$("#right_B_2").append('<img src="img-right2/04-01.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-02.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-03.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-04.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-05.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-06.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-07.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-08.png"/>');
				$("#right_B_2").append('<img src="img-right2/04-09.png"/>');
			}
			if($(this).prev().text() == "天津玩乐汇") {
				$("#right_B_2")[0].innerHTML = null;
				$("#right_B_2").append('<img src="img-right2/05-01.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-02.gif"/>');
				$("#right_B_2").append('<img src="img-right2/05-03.gif"/>');
				$("#right_B_2").append('<img src="img-right2/05-04.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-05.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-06.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-07.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-08.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-09.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-10.gif"/>');
				$("#right_B_2").append('<img src="img-right2/05-11.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-12.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-13.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-14.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-15.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-16.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-17.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-18.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-19.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-20.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-21.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-22.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-23.png"/>');
				$("#right_B_2").append('<img src="img-right2/05-24.gif"/>');

			}
		}) /*prev 元素紧邻的前一个同辈元素*/ /*公众号结束*/
		//				var right_C_2_div = document.getElementById("right_C_2_div");
		//				var right_C_2_li1 = document.getElementById("right_C_2_li1");
		//				var right_C_2_li3 = document.getElementById("right_C_2_li3");
		/*通讯录开始*/
	$("#left_4_div div").click(function() {
		$("#left_4_div div").attr("style", "background-color: #2E3238;");
		$(this).attr("style", "background-color: #3A3F45;");
		$("#sousuo").attr("style", "display: none;");
		$("#left_1_bigImg").attr("style", "display: none;");
		$("#right_C_2_div").html($(this).children().html());
		$("#right_C_2_li1").html($(this).children(".txt").html());
		$("#right_C_2_li3").html($(this).children(".txt").html());
		//					right_C_2_div.innerHTML = $(this).children().html();
		//					right_C_2_li1.innerHTML = $(this).children(".txt").html();
		//					right_C_2_li3.innerHTML = $(this).children(".txt").html();
		if($(this).text() == "A高建春") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("15122904881");
			$("#right_C li:eq(3) span").html("地区：天津 和平");
		}
		if($(this).text() == "AE齐越") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nv.png");
			$("#right_C li:eq(1)").html("我一直在路上");
			$("#right_C li:eq(3) span").html("地区：河北 唐山");
		}
		if($(this).text() == "唉呀妈呀") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nv.png");
			$("#right_C li:eq(1)").html("官方正版授权");
			$("#right_C li:eq(3) span").html("地区：北京");
		}
		if($(this).text() == "布衣泽") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("与其苟延残喘。");
			$("#right_C li:eq(3) span").html("地区：河北 承德");
		}
		if($(this).text() == "brave") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nv.png");
			$("#right_C li:eq(1)").html("猛");
			$("#right_C li:eq(3) span").html("地区：四川 成都");
		}
		if($(this).text() == "不知不觉") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("总是有着吓到自己的自信……别问我为什么");
			$("#right_C li:eq(3) span").html("地区：山西大同");
		}
		if($(this).text() == "曹老师") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("我是曹述坤");
			$("#right_C li:eq(3) span").html(" ");
		}
		if($(this).text() == "常老师") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nv.png");
			$("#right_C li:eq(1)").html("生活才是最好的老师");
			$("#right_C li:eq(3) span").html("地区：天津 南开 ");
		}
		if($(this).text() == "陈彩爽") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nv.png");
			$("#right_C li:eq(1)").html("");
			$("#right_C li:eq(3) span").html(" ");
		}
		if($(this).text() == "杜胜元") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("我之所以要努力，是不想在年华老去之后鄙视自己。");
			$("#right_C li:eq(3) span").html(" ");
		}
		if($(this).text() == "丁明辉") {
			$("#right_C li:eq(0) img").attr("src", "img/sex_nan.png");
			$("#right_C li:eq(1)").html("听说，我没有幽默感");
			$("#right_C li:eq(3) span").html(" ");
		}
	}); /*通讯录结束*/
	/*搜索框开始*/
	/*prepend 动态添加*/
	$("#left_2_input").blur(function() {
		if($("#left_2_input").val() != "A" && $("#left_2_input").val() != "a" && $("#left_2_input").val() != "B" && $("#left_2_input").val() != "b" && $("#left_2_input").val() != "C" && $("#left_2_input").val() != "c" && $("#left_2_input").val() != "D" && $("#left_2_input").val() != "d") {
			$("#sousuo>li").html("找不到匹配结果")
			$("#sousuo_content li").remove()
			$("#sousuo").attr("style", "display: block;")
		} else {
			if($("#left_2_input").val() == "A" || $("#left_2_input").val() == "a") {
				$("#sousuo>li").html("好友");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/A1.jpg'/>A高建春</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/A2.jpg'/>AE齐越</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/A3.jpg'/>唉呀妈呀</li>");
				$("#sousuo").attr("style", "display: block;")
			}
			if($("#left_2_input").val() == "B" || $("#left_2_input").val() == "b") {
				$("#sousuo>li").html("好友");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/B1.jpg'/>布衣泽</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/B2.jpg'/>brave</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/B3.jpg'/>不知不觉</li>");
				$("#sousuo").attr("style", "display: block;")
			}
			if($("#left_2_input").val() == "C" || $("#left_2_input").val() == "c") {
				$("#sousuo>li").html("好友");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/C1.jpg'/>曹老师</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/C2.jpg'/>常老师</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/C3.jpg'/>陈彩爽</li>");
				$("#sousuo").attr("style", "display: block;")
			}
			if($("#left_2_input").val() == "D" || $("#left_2_input").val() == "d") {
				$("#sousuo>li").html("好友");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/D1.jpg'/>杜胜元</li>");
				$("#sousuo_content").prepend("<li class='sousuo_li'><img src='img/D2.jpg'/>丁明辉</li>");
				$("#sousuo").attr("style", "display: block;")
			}
		}
	}) /*搜索框结束*/

	$("#face_tab td").click(function() {
		//					$("#set_content")[0].value += "[微笑]";
		$("#set_content")[0].value = $(this)[0].children[1].innerHTML
			//					$("#content")[0].innerHTML += "<li id='time'>" + new Date().toLocaleTimeString() + "</li>" + "<li>" + "<img id='content_img' src='"+myTX+"'/>" + "<span id='txt'>" +"<img src='faceImg/1.gif'/>" + "</span>" + "</li>";
	})

	$("#right_C p").click(function() {
		$("#left_4_div").attr("style", "display: none;");
		$("#left_4 #tab").attr("style", "display: block;");
		$("#left_3 img:eq(2)").attr("src", "img/left_3_white3.png");
		$("#left_3 img:eq(0)").attr("src", "img/left_3_green1.png");
		$("#right_C").attr("style", "display: none;");
		$("#right").attr("style", "display: block;");
//		$("#tab #1").removeClass("grayqian");
		var C_name = this.parentNode.children[1].children[0].children[0].innerHTML;
		var C_img = this.parentNode.children[0].innerHTML
		$("#tab").prepend("<tr class='tab_TX1'><td onclick='bbb(this)' class='left-right_C'>" + C_img + "<span>" + C_name + "</span></td></tr>");
	})

	//				var xialatu_img = document.getElementById("xialatu_img");
	//				var right_1_txt = document.getElementById("right_1_txt");
	$("#tab td").click(function() {
		$("#xialatu").slideUp(0);
		$("#content")[0].innerHTML="";
		$("#tab td").attr("class", "graysheng");
		$(this).attr("class", "grayqian");
		$("#xialatu_img").html($(this).html());
		var img=$(this)[0].src;
		console.log($(this).attr("src"))
		$("#right_1_txt").html($(this).text());
		$("#face_div").slideUp(500);
		$("#left_1_bigImg").attr("style", "display: none;");
		$("#sousuo").attr("style", "display: none;");
		$("#tjqunliao").hide(1000)
		$("#qunliao .img_div span").attr("style", "display: none;")
	})

	$("#xialatu #xialatu_btn").click(function() {
		$("#tjqunliao").attr("style", "display: block;")
		$("#tjqunliao_2")[0].children[0].innerHTML = $(this)[0].parentNode.children[1].innerHTML;
		$("#tjqunliao_3").prepend("<li><img src='img/A1.jpg'/><span>A高建春</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/A2.jpg'/><span>AE齐越</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/A3.jpg'/><span>唉呀妈呀</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/B1.jpg'/><span>布衣泽</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/B2.jpg'/><span>brave</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/B3.jpg'/><span>不知不觉</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/C1.jpg'/><span>曹老师</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/C2.jpg'/><span>常老师</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/C3.jpg'/><span>陈彩爽</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/D1.jpg'/><span>杜胜元</span></li>");
		$("#tjqunliao_3").prepend("<li><img src='img/D2.jpg'/><span>丁明辉</span></li>");
		$("#tjqunliao_3 li").click(function() {
			$("#tjqunliao_3 li").attr("style", "background-color: white;");
			$(this).attr("style", "background-color: #EFEFEF;")
			$("#tjqunliao_2")[0].children[0].innerHTML += $(this)[0].innerHTML
		})
	})
	$("#tjqunliao_4 p").click(function() {

		$("#tjqunliao").attr("style", "display: none;");
		//					if ($("#tjqunliao_2>div img").length==1) {
		//					$("#tab").prepend("<tr><td class='left4-qunliao1' onclick='aaa(this)'>"  + $(this)[0].parentNode.parentNode.children[1].children[0].innerHTML  + "</td></tr>")
		//					}
		if($("#tjqunliao_2>div img").length == 2) {
			$("#tab").prepend("<tr class='tab_TX1'><td class='left4-qunliao2' onclick='bbb(this)'>" + "<img src='" + $(this)[0].parentNode.parentNode.children[1].children[0].children[2].src + "' />" + "<span>" + $(this)[0].parentNode.parentNode.children[1].children[0].children[3].innerHTML + "</span>" + "</td></tr>")
		}
		if($("#tjqunliao_2>div img").length == 3) {
			$("#tab").prepend("<tr class='tab_TX1'><td class='left4-qunliao3' onclick='aaa(this)'>" + "<div>" + $(this)[0].parentNode.parentNode.children[1].children[0].innerHTML + "</div>" + "</td></tr>")
			$(".left4-qunliao3 span").addClass("none");
			$(".left4-qunliao3>div").addClass("left4-qunliao");

		}
		if($("#tjqunliao_2>div img").length == 4) {
			$("#tab").prepend("<tr class='tab_TX2'><td class='left4-qunliao4' onclick='bbb(this)'>" + "<div>" + $(this)[0].parentNode.parentNode.children[1].children[0].innerHTML + "</div>" + "</td></tr>")
			$(".left4-qunliao4 span").addClass("none");
			$(".left4-qunliao4>div").addClass("left4-qunliao");
			$(".left4-qunliao4 div img").attr("style", "float: left;")
		}
	})

	$("#left_1_bigImg_btn").click(function() {
		$("#tjqunliao").attr("style", "display: none;");
		var myName = $("#left_1_bigImg_btn")[0].parentNode.parentNode.children[0].children[1].innerHTML
		$("#tab").prepend("<tr class='tab_TX1'><td onclick='bbb(this)'>" + "<img class='myliaotian' src='"+myTX+"'/>" + "<span>" + myName + "</span></td></tr>");
		$("#left_1_bigImg").attr("style", "display: none;");
	})
})

function aaa(t) {
	$("#xialatu").slideUp(0);
	$("#tab .tab_TX1 td").attr("class", "graysheng");
	$("#tab .tab_TX2 td").attr("class", "graysheng");
	$(t).attr("class", "L3");
	right_1_txt.innerHTML = $(t).text();
	xialatu_img.innerHTML = $(t).children().html();
	$("#face_div").slideUp(500);
		$("#content")[0].innerHTML="";
	
	$("#left_1_bigImg").attr("style", "display: none;");
	$("#sousuo").attr("style", "display: none;");
	$("#qunliao .img_div span").attr("style", "display: none;")
}

function bbb(t) {
	$("#xialatu").slideUp(0);
	$("#tab .tab_TX1 td").attr("class", "graysheng");
	$("#tab .tab_TX2 td").attr("class", "graysheng");
	$(t).attr("class", "grayqian");
	right_1_txt.innerHTML = $(t).text();
	xialatu_img.innerHTML = $(t).children().html();
	$("#face_div").slideUp(500);
		$("#content")[0].innerHTML="";
	
	$("#left_1_bigImg").attr("style", "display: none;");
	$("#sousuo").attr("style", "display: none;");
	$("#qunliao .img_div span").attr("style", "display: none;")
}